<form name="editForm">
	<div class="form-group">
		<div class="col-md-12 form-item">
			<div class="col-sm-3 col-md-3 form-title"><span style="color:red;">*</span>班次权限名称：</div>
			<div class="col-sm-8 col-md-8 form-input" ng-class="{ 'has-error' : editForm.shiftName.$dirty && editForm.shiftName.$invalid}">
                   <input name="shiftName" 
                           ng-model="editModel.shiftPermission.shiftName"
						   class="form-control" 
						   maxLength="100"
						   type="text" 
					       required>
			</div>
		</div>
		<div class="col-md-12 form-item">		
			<div class="col-sm-3 col-md-3 form-title">分配人员：</div>			
			<div class="col-sm-8 col-md-8 form-input" style="width: 17%;" >
				<button type="button" class="btn btn-success" ng-click="viewEmployeeModel.selectEmployee()">选择人员</button>						
		  	</div>						
		</div>
		<div class="col-md-12 form-item">
			<table class="table table-striped table-bordered" cellspacing="0" width="100%">
				<thead>
					<tr>
						<td width="80"><b>操作</b></td>
						<td style="width: 30%;"><b>员工号</b></td>
						<td><b>员工名称</b></td>
						<td><b>英文名称</b></td>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="employee in editModel.shiftPermission.employeeList">
						<td class="htgl-style10">
							<button type="button" 
									class="btn btn-danger btn-xs" 
									ng-click="editModel.delEmployee(employee)">删除</button>	
						</td>
						<td>{{employee.employeeNo}}</td>
						<td>{{employee.chineseName}}</td>
						<td>{{employee.englishName}}</td>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="col-md-12 form-item">		
			<div class="col-sm-3 col-md-3 form-title">分配部门：</div>			
			<div class="col-sm-8 col-md-8 form-input" style="width: 17%;" >
				<button type="button" class="btn btn-success" ng-click="viewDepartmentModel.selectDepartment()">选择部门</button>						
		  	</div>						
		</div>
		<div class="col-md-12 form-item">
			<table class="table table-striped table-bordered" cellspacing="0" width="100%">
				<thead>
					<tr>
						<td width="80"><b>操作</b></td>
						<td width="150"><b>部门编码</b></td>
						<td><b>部门名称</b></td>
						<td width="150"><b>公司编码</b></td>
						<td><b>公司名称</b></td>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="department in editModel.shiftPermission.departmentList">
						<td class="htgl-style10">
							<button type="button" 
									class="btn btn-danger btn-xs" 
									ng-click="editModel.delDepartment(department)">删除</button>	
						</td>
						<td>{{department.departmentCode}}</td>
						<td>{{department.departmentName}}</td>
						<td>{{department.corporationCode}}</td>
						<td>{{department.corporationName}}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
</form>